package example.service;

import example.common.Result;
import example.entity.Template;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ITemplateService {
    Result getTemplateList();

    Result addTemplate(Template template);

    Result uploadTemplate(MultipartFile file, Long templateId);

    void downTemplate(Long id, HttpServletResponse response);

    Result getFileName(Long id);

    Result delTemplate(Long id);

    Result getTemplateNames();

    Result addSelectionTemplate(Long selectionId, List<String> templateNames);

    Result getL(Long selectionId);

    Result delTemp(Long id);
}
